From: Alexandre Emsenhuber Date: Mon, 24 Aug 2009 15:08:58 +0000 (+0000) Subject: disabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/functio... X-Git-Tag: 1.31.0-rc.0~40077 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=d076f7e274047076d0cfc351ed985e2b41a30ca3;p=lhc%2Fweb%2Fwiklou.git disabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/function" in about evry file --- diff --git a/maintenance/syntaxChecker.php b/maintenance/syntaxChecker.php index a2e3619f32..387b92a684 100644 --- a/maintenance/syntaxChecker.php +++ b/maintenance/syntaxChecker.php @@ -42,9 +42,12 @@ class SyntaxChecker extends Maintenance { $this->buildFileList(); $this->output( "done.\n" ); + // ParseKit is broken on PHP 5.3+, disabled until this is fixed + $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' ); + $this->output( "Checking syntax (this can take a really long time)...\n\n" ); foreach( $this->mFiles as $f ) { - if( function_exists( 'parsekit_compile_file' ) ) { + if( $useParseKit ) { $this->checkFileWithParsekit( $f ); } else { $this->checkFileWithCli( $f );